# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=maui
pkgname=mauikit-texteditor
pkgver=4.0.0
pkgrel=0
pkgdesc="MauiKit Text Editor components"
# armhf blocked by qt5-qtdeclarative
arch="all !armhf"
url="https://mauikit.org/"
license="GPL-2.0-or-later"
depends="kirigami"
makedepends="
	extra-cmake-modules
	kcoreaddons-dev
	ki18n-dev
	syntax-highlighting-dev
	mauikit
	mauikit-dev
	qt6-qtbase-dev
	qt6-qtdeclarative-dev
	samurai
	"
subpackages="$pkgname-dev $pkgname-lang"
_repo_url="https://invent.kde.org/maui/mauikit-texteditor.git"
source="https://download.kde.org/stable/maui/mauikit-texteditor/$pkgver/mauikit-texteditor-$pkgver.tar.xz"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
6cbd406de4e77d92fa06bceb013389f112f40e4ce71628e5722f80591c24d43d25e6e0800e215b7a74559250ced4dc90614016450b5afcee753db5edfa7320f7  mauikit-texteditor-4.0.0.tar.xz
"
